package server.entity.auth;


public enum AuthResponseType {
    // 授权成功
    SUCCESS(20, "启动成功"),
    // 授权失败
    FAIL(24,"授权失败"),
    // 权限过期
    EXPIRE(23,"当前登录状态过期"),
    // 无效票据
    INVALID(25,"Token无效"),
    // 阻止登录
    FORBID(22,"禁止登录");


    private final int code;
    private final String msg;

    AuthResponseType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
